﻿using System;

namespace ProtoBufToLuaAPI
{
    internal class Program
    {
        public static void Main(string[] args)
        {
            string ProtoDir = null;
            string EmmyLuaDir = null;
            if (args.Length > 0)
            {
                string last_arg = args[0];
                foreach (var arg in args)
                {
                    if (last_arg == "-i")
                    {
                        ProtoDir = arg;
                    }
                    if (last_arg == "-o")
                    {
                        EmmyLuaDir = arg;
                    }
                    if (last_arg == "-h")
                    {
                        Console.WriteLine("ProtoBufToEmmyLua.exe -i [protoDir] -o [emmyluaDir]");
                    }
                    last_arg = arg;
                }
            }

            ProtoBufToLua proto = new ProtoBufToLua();
            proto.Init(ProtoDir, EmmyLuaDir);
        }
    }
}